package com.jd.jstable.test;

import com.jd.jstable.annotation.HighPerformance;
import com.jd.jstable.annotation.Reset;
import com.jd.jstable.config.KeyMode;
import com.jd.jstable.strategy.Strategy;
import org.springframework.stereotype.Service;

/**
 * Created by chenyipu on 2018/6/11.
 */
@Service
public class ResetClass {

    @Reset(strategies = "_redis", prefix = "ResetClass")
    public void reset(String a){
        System.out.println("reset "+ a);
    }

    @HighPerformance(strategies = "_redis", prefix = "ResetClass", key_mode = KeyMode.SOME_ARG)
    public String buffered(String a){
        return a + " " + System.currentTimeMillis();
    }
}
